Skip to content

[GLB-210, GLB-239] fix(profile): 공백 닉네임 저장 막기와 직접 진입 화면의 뒤로가기 대체 경로 - #373

Merged
yuminnnnni merged 2 commits into
developfrom
bug/GLB-210-239
Nov 15, 2026
Merged

yuminnnnni merged 2 commits into
developfrom
bug/GLB-210-239

Conversation

@yuminnnnni

Copy link
Copy Markdown
Member

#️⃣연관된 이슈

  • GLB-210 (QA-24) 공백만 있는 닉네임도 저장 버튼이 활성화됨
  • GLB-239 (QA-102) 직접 진입한 약관·프로필·탈퇴 화면에서 뒤로가기가 앱 밖으로 나감

📝작업 내용

GLB-210

  • 닉네임 스키마(packages/shared/src/schemas/profile.ts)에 value.trim().length > 0 검사를 추가했습니다. 공백만 있으면 "닉네임을 입력해주세요."로 거부합니다.
  • 저장 버튼 비활성 조건(EditProfileBottomSheet.tsx)이 스키마 결과가 아니라 nickname.length === 0을 직접 보고 있었습니다. 그래서 !nickname?.trim()으로 바꿨습니다.
  • 티켓에 "앞뒤 공백 처리 규칙은 기획에서 정한다"고 되어 있어, 저장값의 앞뒤 공백은 그대로 둡니다. " 글로버 "는 지금처럼 통과합니다.

GLB-239

  • apps/web/src/utils/navigation.ts에 goBackOrFallback(router, fallbackHref)를 추가했습니다. window.history.length > 1이면 router.back(), 아니면 기본 경로로 이동합니다. ErrorPageContent의 기존 뒤로가기와 같은 기준입니다.
  • 적용한 곳:
    • 프로필(ProfileClient): 기본 경로 /
    • 공통 BackHeader(약관·탈퇴 화면): fallbackHref prop을 추가했고 기본값은 /
    • 탈퇴 화면: /profile

확인

  • 새 테스트 4개 통과
    • navigation.test.ts: 방문 기록이 있을 때 / 없을 때
    • profile.test.ts: 공백만 있는 닉네임 거부, 앞뒤 공백이 있어도 글자가 있으면 통과
  • turbo run typecheck lint:check test(web, shared), prettier: 통과
  • 화면 확인은 개발 서버 배포 후 하겠습니다.
    • 새 탭에서 /terms를 열고 뒤로가기
    • 프로필 편집에서 공백 닉네임 입력

💬리뷰 요구사항(선택)

  • 두 이슈 모두 Jira에 디자인검수 레이블이 있습니다. 방문 기록이 없을 때 약관은 /(비로그인이면 로그인 화면), 탈퇴는 /profile로 보내는 게 맞는지 봐주세요.

@coderabbitai ignore

🤖 Generated with Claude Code

@yuminnnnni yuminnnnni added the 🐞 bug 기능이 의도대로 동작하지 않는 문제 label Nov 15, 2026
@yuminnnnni yuminnnnni self-assigned this Nov 15, 2026
@github-actions
github-actions Bot requested a review from youngju6143 November 15, 2026 09:36
@yuminnnnni
yuminnnnni merged commit da95015 into develop Nov 15, 2026
2 checks passed
@yuminnnnni
yuminnnnni deleted the bug/GLB-210-239 branch November 15, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug 기능이 의도대로 동작하지 않는 문제

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant